<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="/WEB-INF/view/comm/loading.jsp"></jsp:include>
<div class="headertop">
	<div class="headertopleft">
		<c:if test="${userInfo != null}">
		<ul>
			<li>
				欢迎您,&nbsp;<a href="http://weibo.com/u/${userInfo.username}" target="_banlk">${userInfo.nickname}</a>&nbsp;
				&lt;&nbsp;等级: ${userInfo.gradename}&nbsp;妞币: ${userInfo.currency}个&nbsp;积分: ${userInfo.point}分&nbsp;<a href="mainCenter.shtml?type=3">?帮助</a>&nbsp;&gt;
			</li>
			<li>|</li>
			<c:if test="${userInfo.isadmin == 1}">
				<li><a href="mainAdmin.shtml" target="_banlk">后台管理</a></li>
				<li>|</li>
			</c:if>
			<li><a href="exit.shtml">退&nbsp;出</a></li>
		</ul>
		</c:if>
	</div>
	<div class="headertopright">
		<ul>
			<c:if test="${userInfo != null}">
			<li>
				<a href="javascript:;" id="inviteFriendInfo">邀请好友获妞币</a>
			</li>
			<li>
				<c:choose>
					<c:when test="${userInfo.issign == 'true'}"><div class="weibobgimg_disable" id="userSign">已签到</div></c:when>
					<c:otherwise><div class="weibobgimg" id="userSign">签到啦</div></c:otherwise>
				</c:choose>
			</li>
			<li>
				<c:choose>
					<c:when test="${userInfo.following == 'true'}"><div class="weibobgimg_disable" id="addWeiboPaySystem">已关注</div></c:when>
					<c:otherwise><div class="weibobgimg" id="addWeiboPaySystem">加关注</div></c:otherwise>
				</c:choose>
			</li>
			<li>
				<div class="weibobgimg" id="shareWeibo">分享它</div>
			</li>
			</c:if>
			<li>
				<a href="javascript:;" onclick="header.openWindow('feedback.jsp', '反馈建议');">反馈建议</a>
			</li>
			<li>
				<a href="javascript:;" onclick="header.openWindow('updatelog.jsp', '更新记录', 650, 500);">更新记录</a>
			</li>
		</ul>
	</div>
	<br clear="all"/>
</div>
<div id="inviteFriendInfoContent" class="invitefriend">
	<div class="invite">
	<p class="invite_title">hi~&nbsp;这是你的专用邀请链接,帮朋友增加粉丝,自己拿妞币吧~</p>
		<textarea class="invite_content" id="invitefriendWeiboContent" onclick="this.select();">亲爱的朋友们,我正在使用#妞妞助手#管理粉丝,极少成多,粉丝已经增加了好几倍,现在我想邀请你也来一起用!<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath()%>/p/inviteFriendInfo.shtml?u=${userInfo.username}</textarea>
		<p class="invite_share"><input type="button" class="weibobgimg" onclick="header.sendUpdateStatusWeibo($('#invitefriendWeiboContent').text());" value=" 分 享" /></p>
		<p class="invite_title">活动规则:</p>
		<p class="invite_detail">1.邀请奖励活动从2012年开始!</p>
		<p class="invite_detail">2.邀请好友成功后,你可以获得相应的奖励,你可以进入个人中心查看你的邀请奖励记录!</p>
		<p class="invite_detail">3.所有奖励将在你的好友成功登录系统后生效!</p>
		<p class="invite_title">我的邀请记录:</p>
		<div class="invite_detail">
			邀请好友数: <strong class="bold"><c:if test="${userInfo.invitenum == null}">0</c:if>${userInfo.invitenum}</strong>人&nbsp;
			<a href="mainCenter.shtml?type=2" class="btngreen">查看详细</a>
		</div>
	</div>
</div>